﻿using EdiNet;
using Xunit;
using System;
using System.IO;
using System.Text;
using System.Xml;

namespace EdiNet.Test
{
    public class EdiXmlWriterTest
    {
        private EdiXmlWriter writer;
        private Stream ediStream;

        public EdiXmlWriterTest()
        {
            ediStream = StreamHelper.CreateTempFileStream();
            writer = new EdiXmlWriter(ediStream, EdiReaderWriterSettings.DefaultX12);
        }


        //[Fact()]
        //public void CloseTest()
        //{
        //    writer.Close();
        //    Assert.Throws<ObjectDisposedException>(delegate()
        //    {
        //        writer.WriteStartElement("AAA"); //ObjectDisposedException
        //    });
        //}


        [Fact()]
        public void LookupPrefixTest()
        {
            Assert.Throws<NotImplementedException>(delegate()
            {
                writer.LookupPrefix("AA");
            });
        }

    }
}